import request from "@/utils/request";
import {HOST} from "@/constants";
import qs from "qs";

export function receiveEnterpriseProductOrder(data) {
    return request({
        url: `${HOST}/enterprise-product/order/auth`,
        method: 'post',
        data: qs.stringify(data)
    })
}

export function receiveBankProductOrder(data) {
    return request({
        url: `${HOST}/bank-product/order/auth`,
        method: 'post',
        data: qs.stringify(data)
    })
}


export function getOrderFromBankToMe(data) {
    return request({
        url: `${HOST}/enterprise-product/order/to-me`,
        method: 'get',
        params: data
    })
}

export function getOrderFromEnterpriseToMe(data) {
    return request({
        url: `${HOST}/bank-product/order/to-me`,
        method: 'get',
        params: data
    })
}

export function getOrderFromBankFromMe(data) {
    return request({
        url: `${HOST}/enterprise-product/order/from-me`,
        method: 'get',
        params: data
    })
}

export function getOrderFromEnterpriseFromMe(data) {
    return request({
        url: `${HOST}/bank-product/order/from-me`,
        method: 'get',
        params: data
    })
}


